using System;
using System.Collections.Generic;
using System.Text;
namespace BLL.BusinessLayer
{
	[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://tempuri.org/")]
	[Serializable]
	public class ClsApps_Quests: BusinessObjectBase
	{

		public ClsApps_Quests() {}

		#region InnerClass
		public enum ClsApps_QuestsFields
		{
			App_Quest_ID,
			AppID,
			QuestionID
		}
		#endregion

		#region Data Members

			int _app_Quest_ID;
			int? _appID;
			int? _questionID;

		#endregion

		#region Properties

		public int  App_Quest_ID
		{
			 get { return _app_Quest_ID; }
			 set
			 {
				 if (_app_Quest_ID != value)
				 {
					_app_Quest_ID = value;
					 PropertyHasChanged("App_Quest_ID");
				 }
			 }
		}

		public int?  AppID
		{
			 get { return _appID; }
			 set
			 {
				 if (_appID != value)
				 {
					_appID = value;
					 PropertyHasChanged("AppID");
				 }
			 }
		}

		public int?  QuestionID
		{
			 get { return _questionID; }
			 set
			 {
				 if (_questionID != value)
				 {
					_questionID = value;
					 PropertyHasChanged("QuestionID");
				 }
			 }
		}


		#endregion

		#region Validation

		internal override void AddValidationRules()
		{
			ValidationRules.AddRules(new Validation.ValidateRuleNotNull("App_Quest_ID", "App_Quest_ID"));
		}

		#endregion

	}
}
